package cn.edu.hnpu.news.ui;

import android.os.Bundle;
import android.view.View;

import cn.edu.hnpu.news.R;
import cn.edu.hnpu.news.ui.widget.GestureFrameLayout;

/**
 *
 * Created by Administrator on 2015/3/1.
 */
public class SettingActivity extends BaseActivity  {

    private GestureFrameLayout mGestureFrameLayout;  //滑动返回

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);

        mGestureFrameLayout = (GestureFrameLayout) findViewById(R.id.news_content_gesture_layout);
        mGestureFrameLayout.attachToActivity(this);

        mToolbar = (android.support.v7.widget.Toolbar) findViewById(R.id.toolbar);
        mToolbar.setNavigationIcon(R.drawable.ic_arrow_back_black);
        setSupportActionBar(mToolbar);

        mToolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                SettingActivity.this.finish();
            }
        });

    }
}
